import React from "react";
import lazyLoad from "@/routers/utils/lazyLoad";
import {LayoutIndex} from "@/routers/constant";
import {RouteObject} from "@/routers/interface";

// canvas 模块
const canvasScreenRouter: Array<RouteObject> = [
    {
        element: <LayoutIndex/>,
        meta: {
            title: "Echarts"
        },
        children: [
            {
                path: "/canvasScreen/drawingCanvas",
                element: lazyLoad(React.lazy(() => import("@/views/canvasScreen/drawingCanvas/index"))),
                meta: {
                    requiresAuth: true,
                    title: "绘画",
                    key: "waterChart"
                }
            },
        ]
    }
]
export default canvasScreenRouter;
